﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManagForumList.aspx.cs" Inherits="ExamV5.OnLineInter.ManagForumList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Language" content="zh-cn" />
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	
    <link href="../Image/STYLE.CSS" rel="stylesheet" type="text/css" />
   
   <script type="text/javascript" language="javascript">
       function SubmitKeyClick(button) {
           if (event.keyCode == 13) {
               event.keyCode = 9;
               event.returnValue = false;
               document.all[button].click();
           }
       }
       function EditForumInfo(strID) {
           var strURL = "FrmEditForumInfo.aspx?ID=" + strID;

           var iWidth = 690;
           var iHeight = 600;
           var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
           var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
           window.open(strURL, "编辑论坛版块信息", "height=" + iHeight + ", width=" + iWidth + ", top=" + iTop + ", left=" + iLeft + ",toolbar=no,menubar=no,scrollbars=yes,resizable=no, location=no,status=no");

       }
		</script>
</head>
<body>
    <form id="form1" runat="server"><asp:ScriptManager ID="SM" runat="server">
                        </asp:ScriptManager>
                        <asp:UpdatePanel ID="UPPart" runat="server">
                           <ContentTemplate>
      <table cellSpacing="0" cellPadding="0" border="0">
	    <tr>
		   <td width=37><img src="../image/BobyTip.gif" border="0" /></td>
           <td>当前位置：<a href='../FrmMain.aspx'>系统首页</a> >  在线交流平台 > 在线论坛中心</td>
	    </tr>
        </table>
        <table cellSpacing="0" cellPadding="0" border="0" width="100%">
        <tr>
           <td  height=51  background="../image/BobyModNameBG.gif">
                    <table cellSpacing="0" cellPadding="0" border="0">
                        <tr>
                            <td width=5></td>
                            <td width="133"  background="../image/HeadTitleAB.gif" height="41" align="center"><a href='ForumInfoList.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Menu62.gif" border="0" style='POSITION:relative;TOP:3px'> <font color="#ffffff"><b>在线论坛中心</b></font></a></td>
                            <td width="133"  background="../image/HeadLocalAB.gif" height="41" align="center"><a href='ManagForumList.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Menu11.gif" border="0" style='POSITION:relative;TOP:3px'> <font color="#ffffff"><b>论坛版块设置</b></font></a></td>
                            
                        </tr>
                   </table>
            </td>
         </tr>
         <tr>
            <td  height=33  background="../image/QueryBG.gif" align="right">
                                    <!--查询区-->
                                <asp:Button ID="butAdd" runat="server"  Text="新增版块" style='POSITION:relative;TOP:-2px' CssClass="but4R"   OnClientClick="javascript:EditForumInfo(0)"/>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td>
                                    <!--数据列表区-->
                                    <asp:GridView ID="DataGridInfo" runat="server" AllowPaging="True"  
                                            onpageindexchanging="DataGridInfo_PageIndexChanging" 
                                            AutoGenerateColumns="False" CellPadding="10" BorderWidth="1px" Width="100%" 
                                            CssClass="tableStyle" BackColor="White" PageSize="10" 
                                            onrowdatabound="DataGridInfo_RowDataBound" 
                                            DataKeyNames="ID" >
							            <HeaderStyle Font-Bold="True" HorizontalAlign="Center" CssClass="tabth_bg" ForeColor="#143F61"></HeaderStyle>
							            <FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
                                            <Columns>
                                            <asp:TemplateField HeaderText="版块信息">
									<ItemTemplate>
										<table id="table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
											<TR>
												<TD  style="border-bottom:0px solid #cccccc;border-right: 0px solid #cccccc;">&nbsp;&nbsp;<img src="../image/forumDian.gif" border="0">&nbsp;
													<asp:Label id=labTypeName runat="server" Font-Bold="True" Text='<%# DataBinder.Eval(Container.DataItem,"TypeName") %>'>
													</asp:Label>
													<asp:Label id=labID runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ID") %>' Visible="False">
													</asp:Label></TD>
											</TR>
											
											<TR>
												<TD  style="border-bottom:0px solid #cccccc;border-right: 0px solid #cccccc;">&nbsp;&nbsp;&nbsp;&nbsp;
													<asp:Label id=labTypeInfo runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"TypeInfo") %>'>
													</asp:Label></TD>
											</TR>
										</table>
									</ItemTemplate>
								</asp:TemplateField>
								<asp:TemplateField HeaderText="版主信息">
									<HeaderStyle Width="120px"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
									<ItemTemplate>
										<asp:Label id=labManager runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"UserName") %>'>
										</asp:Label>
									</ItemTemplate>
								</asp:TemplateField>

                                            </Columns>
                                        <PagerStyle HorizontalAlign="Right" />
           
           
                                     </asp:GridView>
                                    </td>
                                </tr>
                                <tr height="25">
                                    <td><br />
                                    <!--分页区-->
                                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
										<tr>
											<td align="left">&nbsp;</td>
											<td align="right"><asp:label id="labRescordCount" runat="server">总共&nbsp;<font color='#0000C0'><B>0</B></font>&nbsp;条记录&nbsp;<font color='#0000C0'><B>1/1</B></font>&nbsp;页&nbsp;</asp:label>
												<asp:LinkButton id="LBFirstPage" runat="server" onclick="LBFirstPage_Click">第一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBPrevPage" runat="server" onclick="LBPrevPage_Click">上一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBNextPage" runat="server" onclick="LBNextPage_Click">下一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBLastPage" runat="server" onclick="LBLastPage_Click">最后页</asp:LinkButton>&nbsp;</td>
										</tr>
									    </table>
                                    </td>
                                </tr>
                                </table>
                           </ContentTemplate>
                        </asp:UpdatePanel>
					
    </form>
</body>
</html>

